'''用于存放接口参数或者读取参数文件'''

#1.登录接口
cms_login_url = 'http://192.168.121.130:8081/cms/manage/loginJump.do'
cms_login_data = {
    'userAccount':'admin',
    'loginPwd':'123456'
}
cms_login_headers = {'Content-Type':'application/x-www-form-urlencoded'}

#2.用户查询接口
cms_select_url = 'http://192.168.121.130:8081/cms/manage/queryUserList.do'
cms_select_data = {
    'startCreateDate':'',
    'endCreateDate':'',
    'searchValue':'',
    'page':1
}
cms_select_headeres = {'Content-Type':'application/x-www-form-urlencoded'}

#3.添加用户
gl_tj_url = 'http://192.168.121.130:8081/cms/manage/saveSysUser.do'
gl_tj_data = {
        'id': '',
        'userName': 'admin1',
        'userSex': '1',
        'userMobile': '18844111589',
        'userEmail': '1016907627@qq.com',
        'userAccount': 'admin1',
        'loginPwd': '123456',
        'confirmPwd': '123456'
}
gl_tj_headers = {'Content-Type': 'application/x-www-form-urlencoded'}

#4.修改个人密码
gl_xgmm = 'http://192.168.121.130:8081/cms/manage/updateLoginPwd.do'
gl_xgmm_data = {
    'id': '5',
    'loginPwd': '456123',
    'loginPwd2': '456123',
}
gl_xg_headers = {'Content-Type': 'application/x-www-form-urlencoded'}

#添加栏目
tj_lm = 'http://192.168.121.130:8081/cms/manage/saveModuleCategory.do'
tj_lm_data = {
    'id': '',
    'categoryName': '123',
    'parentId': '',
    'parentId': '',
    'categoryCode': '123',
    'categoryDesc': '',
    'keyTitle': '',
    'keyWords': '',
    'keyDesc': '',
}
tj_lm_headers = {'Content-Type': 'application/x-www-form-urlencoded'}

#添加资讯
tj_zx = 'http://192.168.121.130:8081/cms/manage/saveArticle.do'
tj_zx_data = {
    'id': '',
    'articleExt.id': '',
    'categoryId': '2',
    'articleTitle': '456',
    'articleDesc': '456',
    'articleIsShow': '0',
    'articleExt.articleContent': '< p > 123 < / p >',
    'articleAuthor': 'asmin',
    'articleSource': 'asmin',
    'editorValue': '< p > 123 < / p >',
}
tj_zx_headers = {'Content-Type': 'application/x-www-form-urlencoded'}